@extends('admin.layouts.app')
@section('content')

                        <!-- Page-Title -->
                        <div class="row">
                            <div class="col-sm-12">
                                <h4 class="page-title">平台管理</h4>
                                <ol class="breadcrumb">
                                    <li><a href="#">系统</a></li>
                                    <li><a href="#">系统设置</a></li>
                                    <li class="active">中奖结果</li>
                                </ol>
                            </div>
                        </div>
                        
                           <div class="row">

                            <div class="col-lg-12">

                                <div class="row"><!-- /primary heading -->
                                    
                                   
                                        <div class="card-box">
                                        <div class="row">
                                        <div class="col-sm-8">
                                            <form role="form">
                                                <div class="form-group contact-search m-b-30">
                                                    <input type="text" name="mobile" class="form-control" placeholder="输入手机号">
                                                    <button type="submit" class="btn btn-white"><i class="fa fa-search"></i></button>
                                                </div> <!-- form-group -->
                                            </form>
                                        </div>
                                        
                                    </div>
                                            <div class="table-responsive">
                                                <table class="table table-hover ">
                                            <thead>
                                                <tr>
                                                    <th style="min-width: 35px;">
                                                        <div class="checkbox checkbox-primary checkbox-single m-r-15">
                                                            <input id="action-checkbox" type="checkbox">
                                                            <label for="action-checkbox"></label>
                                                        </div>
                                                        
                                                    </th>
                                                   
                                                   
                          <th>中奖时间</th>                          
                          <th>奖品名称</th>
                          <th>微信名</th>
                          <th>微信头像</th>
                          <th>姓名</th>
                          <th>手机号</th>
                          <th>地址</th>  
                          
                                                    <!-- <th>状态</th> -->
                                                    
                                                    <th>操作</th>
                                                </tr>
                                            </thead>
                                            
                                            <tbody>

                                            @foreach($list as $v)
                                                <tr>

                                                    <td>
                                                        {{$v->id}}                                            
                                                      
                                                    </td>
                                                 <td>{{$v->created_at}}</td>   
                                                    
                                                   
                    <td>{{ $v->gift_name}}</td>  
                                                    
                                                    <td>
                                                        {{$v->nickname}}
                                                    </td> 
                                                   <td><img src="{{$v->headimgurl}}" width="50" /></td>
                                                    <td>{{$v->truename}}</td>
                                                    <td>{{$v->mobile}}</td>
                                                    <td>{{$v->address}}</td>
                                                  
                                                   
                                                    <td>
                                                        @if($v->is_converted==0)
                                                        <a class="btn btn-success" href="{{url('zadmin/lottery-info',$v->id)}}">兑奖</a>
                                                        @else
                                                        <span class="btn btn-warning">已兑奖</span>
                                                        @endif
                                                    </td>
                                                    
                                                </tr>
                                            @endforeach    
                                                
                                               
                                               
                                                
                                               
                                                
                                            
                                            </tbody>
                                        </table>

                                            </div>
                                        {{ $list->appends($param)->links() }}
                                        </div>
                                  
                                </div>
                            </div> <!-- end col -->


                        </div>
@endsection
                        
                        
                        

                  
            
    @section('modal')        
        <!-- Modal -->
      <div id="custom-modal" class="modal-demo">
          <button type="button" class="close" onclick="Custombox.close();">
              <span>&times;</span><span class="sr-only">Close</span>
          </button>
          <h4 class="custom-modal-title">添加中奖结果</h4>
          <div class="custom-modal-text text-left">
              <form class="form-horizontal" role="form" action="{{url('zadmin/admins')}}" method="post">                                    
                                              <div class="form-group">
                                                  <label class="col-md-2 control-label">账号</label>
                                                  <div class="col-md-10">
                                                      <input type="text" class="form-control" name="username" value="" required="">
                                                  </div>
                                              </div>
                                              <div class="form-group">
                                                  <label class="col-md-2 control-label" for="example-email">密码</label>
                                                  <div class="col-md-10">
                                                      <input type="text"  name="password" class="form-control" >
                                                  </div>
                                              </div>

                                              <div class="form-group">
                                                  <label class="col-md-2 control-label" for="example-email">确认密码</label>
                                                  <div class="col-md-10">
                                                      <input type="text"  name="password2" class="form-control" >
                                                  </div>
                                              </div>

                                              

                                              <div class="form-group text-center">
                                                  
                                                  <button type="submit" class="btn btn-info waves-effect waves-light">保存</button>
                                              </div>
                                              
                                              
                             {{csrf_field()}}
                                          </form>
          </div>
      </div>
    @endsection        
       

           



    
        @section('js')
        <script type="text/javascript" src="{{asset('hrs/js/laravel.js')}}"></script>
        
        @endsection
    
